/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.Site_DAO;
import DTO.Site_DTO;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author phihai
 */
public class Site_BUS {
    
    public ArrayList<Site_DTO> DanhSachWeb() throws Exception
    {
        Site_DAO site = new Site_DAO();
        return site.DanhSachWeb();
    }
    
    public void themsite(String site, String domain) throws SQLException
    {
        Site_DAO them_site = new Site_DAO();
        them_site.them(site, domain);
        
    }
    
    public String laydomain(int ID) throws SQLException
    {
        String domain;
        Site_DAO sdao = new Site_DAO();
        domain = sdao.Laydomain(ID);
        return  domain;
    }
}
